package top.eggcode.modules.log.service;

import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import top.eggcode.component.query.model.PageList;
import top.eggcode.modules.log.model.ExceptionLogEntity;
import top.eggcode.modules.log.model.ExceptionLogQuery;
import top.eggcode.modules.log.store.ExceptionLogRepository;
import top.eggcode.modules.log.store.ExceptionLogStore;
import top.eggcode.base.BaseMarkServiceImpl;

/**
 * Title:
 * Description: TODO
 * Date: 2021/5/27 23:55
 *
 * @author JiaQi Ding
 * @version 1.0
 */
@Slf4j
@Transactional(rollbackFor = Exception.class)
@AllArgsConstructor
@Service
public class ExceptionLogService extends BaseMarkServiceImpl<ExceptionLogEntity> {

    private final ExceptionLogRepository selfRepository;

    private final ExceptionLogStore selfAccessor;

    public PageList<ExceptionLogEntity> page(ExceptionLogQuery query) {
        return selfAccessor.page(query);
    }


}
